package code4;

public class UserMessage implements java.io.Serializable{

    private static final long serialVersionUID = -20L;

    private String userClass;
    private User user;

    public UserMessage() {
    }

    public UserMessage(String userClass, User user) {
        setUserClass(userClass);
        setUser(user);
    }

    public String getUserClass() {
        return userClass;
    }

    public void setUserClass(String userClass) {
        this.userClass = userClass;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "UserMessage{" +
                "userClass='" + userClass + '\'' +
                ", user=" + user +
                '}';
    }
}
